package com.wanxi.user.controller;

import com.wanxi.common.entity.Role;
import com.wanxi.common.result.ResultDTO;
import com.wanxi.user.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class RoleController {
 @Autowired
 private RoleService roleService;


    @RequestMapping("/back/role/findAll")
    public ResultDTO findAll(Role role) {
        ResultDTO resultDTO = roleService.findAll(role);
        return resultDTO;
    }
}
